import { createRouter, createWebHistory } from "vue-router";
import Menzhen  from "./components/menzhen.vue";
import Index from './components/index.vue';
import Tooth from './components/tooth/index.vue';

// 2. 配置路由
const constantRoutes = [
  {
    path: '/gotoHome',
    redirect: '/',
  },
  {
    path: '/menzhen',
    component: Menzhen,
  },
  {
    path: '/',
    component: Index,
  },
  {
    path: '/tooth',
    component: Tooth,
  }
]
 
// const asyncRoutes = [
//   bannerRoutes, proRoutes, accountRoutes
// ]
 
const router = createRouter({
  history: createWebHistory(),
routes:constantRoutes
});
 
export default router;